package com.zhuangjie.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuangjie.order.entity.OrderAmount;
import com.zhuangjie.order.vo.ShopProfitForShopOrderAccountingVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 订单金额详细表 Mapper 接口
 * </p>
 *
 * @author zhuangjie
 * @since 2024-03-30
 */
public interface OrderAmountMapper extends BaseMapper<OrderAmount> {

    BigDecimal queryOrderActualDeliveryFee(@Param("orderId") Long orderId);

    ShopProfitForShopOrderAccountingVO queryShopOrderProfitForAccounting(@Param("orderId") Long orderId, @Param("orderCompletionState") int orderCompletionState);
}
